<html xmlns:th="http://www.thymeleaf.org">
<head>

    <link th:href="@{https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css}" rel="stylesheet"/>

</head>

<body>

<a href="/list-schedule-job">配置定时任务</a>
<a href="/project/create">创建新项目</a>
<h1> 项目列表 </h1>
<div>
    <table class="table table-bordered ">
        <thead>
        <tr>
            <td>
                项目名称
            </td>
            <td>
                DB类型
            </td>
            <td>
                操作
            </td>
        </tr>
        </thead>
        <tbody>
        <tr th:each="project : ${projects}">
            <td th:text="${project.name}"></td>
            <td th:text="${project.dbType}"></td>
            <td>
                <a th:href="${project.executeURL}">执行</a>
                <a th:href="@{/project/{id}/script/list(id=${project.id})}">Edit Script</a>
            </td>
        </tr>
        </tbody>
    </table>
</div>

<div th:if="${message}">
    <h2 th:text="${message}"/>
</div>

</body>
</html>
